# -*- coding: utf-8 -*-
import sys
sys.path.append("../src/")

import fouine

samples = [ u"aaポポbbaaa", u"aaポポbbaaac", u"aaポbbaaa",  u"aaポポbbacaa"]
ptn = u"[ab]+ポポ[ab]+"

regex_rule = fouine.RegexRule(ptn)
or_rule = fouine.OrRule(range(20))

for sample in samples: 
    print sample, regex_rule.test_match(sample)
